﻿using ProtoBuf;
namespace PnJ.Aliyun.OTS.Models
{
    /// <summary>
    /// 用于在操作失败时的响应消息中表示错误信息
    /// </summary>
    [ProtoContract(Name = "Error")]
    public class Error
    {
        /// <summary>
        ///  当前单行操作的错误码
        /// </summary>
        [ProtoMember(1, Name = "code", IsRequired = true)]
        public string Code { get; set; }
        /// <summary>
        /// 当前单行操作的错误信息
        /// </summary>
        [ProtoMember(2, Name = "message")]
        public string Message { get; set; }
    }
}
